.chat-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background: linear-gradient(135deg, #e6f7ff 0%, #bae7ff 100%);
  padding: 0;
  margin: 0;
}

.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background-color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

.chat-header h1 {
  margin: 0;
  color: #1890ff;
  font-size: 24px;
}

.current-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.switch-user-button {
  padding: 6px 12px;
  background-color: #1890ff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s;
}

.switch-user-button:hover {
  background-color: #40a9ff;
}

.chat-content {
  display: flex;
  flex: 1;
  overflow: hidden;
  padding: 20px;
  gap: 20px;
}

.chat-sidebar {
  width: 280px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-sidebar h2 {
  padding: 15px;
  margin: 0;
  font-size: 18px;
  color: #1890ff;
  border-bottom: 1px solid #f0f0f0;
}

.chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

/* 用户切换模态框样式 */
.user-switch-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.user-switch-content {
  background-color: white;
  padding: 20px 30px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  text-align: center;
  min-width: 300px;
}

.user-switch-content h3 {
  margin-top: 0;
  margin-bottom: 15px;
  color: #333;
}

.user-list-modal {
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 15px;
}

.user-list-modal .user-item {
  padding: 10px;
  margin: 5px 0;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.user-list-modal .user-item:hover {
  background-color: #f0f0f0;
}

.user-list-modal .user-item.active {
  background-color: #e6f7ff;
  color: #1890ff;
}

.modal-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.modal-buttons button {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  min-width: 80px;
}

.modal-buttons button:first-child {
  background-color: #1890ff;
  color: white;
}

.modal-buttons button:first-child:hover {
  background-color: #40a9ff;
}

/* 响应式布局 */
@media (max-width: 768px) {
  .chat-content {
    flex-direction: column;
  }
  
  .chat-sidebar {
    width: 100%;
    max-height: 200px;
  }
}